package com.dd.cloud.user.req.admin;

import com.dd.cloud.common.annotate.validation.Desc;
import com.dd.cloud.common.annotate.validation.Name;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author czg
 * @since 2022-05-07
 */
@Data
public class AddProblemHelpReq implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 问题内容
     */
    @NotBlank(message = "问题不能为空")
    @Name(message = "问题格式为不超过20位的任何类型字符")
    private String title;

    /**
     * 答案
     */
    @NotBlank(message = "答案不能为空")
    @Length(max = 500, message = "答案长度不能超过500字符")
    private String answer;

    /**
     * 备注
     */
    @Desc(required = false)
    private String remark;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 问题类型
     */
    @NotNull(message = "问题类型不能为空")
    private Integer typeId;
}
